package cn.hd01.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.hd01.repository.TimingSmsRepository;
import cn.hd01.repository.entity.TimingSms;
import cn.hd01.service.TimingSmsService;

@Service
public class TimingSmsServiceImpl extends BaseServiceImpl<TimingSms, Integer> implements TimingSmsService {

	private TimingSmsRepository repository;

	@Autowired
	public TimingSmsServiceImpl(TimingSmsRepository repository) {
		super(repository);
		this.repository = repository;
	}

	@Override
	public List<TimingSms> findByStatus(String status) {
		return repository.findByStatus(status);
	}

	@Override
	public int updateStatus(String status, Integer id) {
		return repository.updateStatus(status, id);
	}


}
